package cn.demoncat.util.lang.entity;

import lombok.Data;

/**
 * 描述：键值对类型的实体类
 *
 * @author 延晓磊
 *
 * @version 2.0
 *
 * @since 2016-12-9
 */
@Data
public class KeyVal implements Comparable<KeyVal>{

	private String key;
	private Object value;

	public KeyVal() {
		super();
	}
	
	public KeyVal(String key, Object val) {
		super();
		this.key = key;
		this.value = val;
	}

	@Override
	public int compareTo(KeyVal o) {
		return this.key.compareTo(o.getKey());
	}

}
